package com.elai.operate.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.elai.operate.mapper.OperateChannelTemplateMapper;
import com.elai.operate.domain.OperateChannelTemplate;
import com.elai.operate.service.IOperateChannelTemplateService;

/**
 * 系统通道Service业务层处理
 * 
 * @author elai
 * @date 2021-10-18
 */
@Service
public class OperateChannelTemplateServiceImpl implements IOperateChannelTemplateService 
{
    @Autowired
    private OperateChannelTemplateMapper operateChannelTemplateMapper;

    /**
     * 查询系统通道
     * 
     * @param id 系统通道ID
     * @return 系统通道
     */
    @Override
    public OperateChannelTemplate selectOperateChannelTemplateById(Integer id)
    {
        return operateChannelTemplateMapper.selectOperateChannelTemplateById(id);
    }

    /**
     * 查询系统通道列表
     * 
     * @param operateChannelTemplate 系统通道
     * @return 系统通道
     */
    @Override
    public List<OperateChannelTemplate> selectOperateChannelTemplateList(OperateChannelTemplate operateChannelTemplate)
    {
        return operateChannelTemplateMapper.selectOperateChannelTemplateList(operateChannelTemplate);
    }

    /**
     * 新增系统通道
     * 
     * @param operateChannelTemplate 系统通道
     * @return 结果
     */
    @Override
    public int insertOperateChannelTemplate(OperateChannelTemplate operateChannelTemplate)
    {
        return operateChannelTemplateMapper.insertOperateChannelTemplate(operateChannelTemplate);
    }

    /**
     * 修改系统通道
     * 
     * @param operateChannelTemplate 系统通道
     * @return 结果
     */
    @Override
    public int updateOperateChannelTemplate(OperateChannelTemplate operateChannelTemplate)
    {
        return operateChannelTemplateMapper.updateOperateChannelTemplate(operateChannelTemplate);
    }

    /**
     * 批量删除系统通道
     * 
     * @param ids 需要删除的系统通道ID
     * @return 结果
     */
    @Override
    public int deleteOperateChannelTemplateByIds(Integer[] ids)
    {
        return operateChannelTemplateMapper.deleteOperateChannelTemplateByIds(ids);
    }

    /**
     * 删除系统通道信息
     * 
     * @param id 系统通道ID
     * @return 结果
     */
    @Override
    public int deleteOperateChannelTemplateById(Integer id)
    {
        return operateChannelTemplateMapper.deleteOperateChannelTemplateById(id);
    }
}
